package com.xr.mapper;

import com.xr.pojo.OrderSetting;
import com.xr.pojo.OrderSettingExample;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderSettingMapper {
//  //  根据预约日期设置预约人数
    void updateByOrderDate(OrderSetting orderSetting);
    List<OrderSetting>getOrderSettingByMonth(Map map);
    //查看日期是否存在
    OrderSetting findCountByOrderDate(Date orderDate);
    //修改
    void editNumberByOrderDate(OrderSetting orderSetting);
    long countByExample(OrderSettingExample example);

    int deleteByExample(OrderSettingExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(OrderSetting record);

    int insertSelective(OrderSetting record);

    List<OrderSetting> selectByExample(OrderSettingExample example);

    OrderSetting selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") OrderSetting record, @Param("example") OrderSettingExample example);

    int updateByExample(@Param("record") OrderSetting record, @Param("example") OrderSettingExample example);

    int updateByPrimaryKeySelective(OrderSetting record);

    int updateByPrimaryKey(OrderSetting record);
}